/*
 * @Description  : 浏览记录
 * @Author       : zhao
 * @Date         : 2022-07-22 18:55:40
 * @LastEditors  : zhao
 * @LastEditTime : 2022-07-25 08:48:32
 */

import request from '@/utils/request'

// BS添加搜索记录，用于统计分析
export function AddSearchRecord(data) {
    return request({
        url: '/SearchRecord/AddSearchRecord',
        method: 'post',
        data: data
    })
}
// 查询浏览记录，通过搜索记录返回
export function GetSearchRecord(data) {
    return request({
        url: '/BrowsingRecord/GetBrowsingRecord',
        method: 'get',
        params: data
    })
}
// 清空浏览记录
export function DeleteBrowsingRecordAll(data) {
    return request({
        url: '/BrowsingRecord/DeleteBrowsingRecordAll',
        method: 'post',
        data: data
    })
}
// 删除浏览记录
export function DeleteBrowsingRecord(data) {
    return request({
        url: '/BrowsingRecord/DeleteBrowsingRecord',
        method: 'post',
        data: data
    })
}
